A class component requires you to extend from React.Component and create a render function that returns a React element.
Class components are based on ES6 classes and can have their own state and lifecycle methods.